package Server;

import Factory.ManagerFactory;
import dao.ManagerDao;
import user.Manager;

public class ManagerServer {

    private ManagerDao managerDao;

    public ManagerServer(){
        this.managerDao= ManagerFactory.getManagerDao();
    }

    /**
     * 自定义成员方法用指定manager调用Dao层实现登录功能
     * @param manager
     * @return
     */
    public Manager managerLoginServer(Manager manager){
        return managerDao.managerLogin(manager);
    }
}
